<!-- inc:head -->
<div id="body">
	<div id="left">
		<div id="user_cp"><div class="loading"></div></div>
		<div class="space"></div>
		<div class="block-title">订单搜索</div>
		<div class="block-msg">
			<table>
			<form method="post" action="{:site_url('order,list')}">
			<tr>
				<td align="right">关键字：</td>
				<td><input type="text" name="keywords" id="keywords" value="{:$keywords}"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" class="button" value="查询"></td>
			</tr>
			</form>
			</table>
		</div>

	</div>
	<div id="right">
		<div class="block-title">订单列表</div>
		<div class="block-msg">
			<table width="100%" style="layout:fixed;" cellpadding="0" cellspacing="0">
			<tr>
				<td class="t_sub" width="50px">ID</td>
				<td class="t_sub" width="35px">状态</td>
				<td class="t_sub">编号</td>
				<td class="t_sub" width="130px">创建时间</td>
				<td class="t_sub" width="100px">金额</td>
				<td class="t_sub" width="80px">操作</td>
			</tr>
			<!-- $rslist AS $key=>$value -->
			<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
				<td align="center" class="tc_left">{:$value[id]}</td>
				<td align="center" class="tc_right"><img src="images/status{:intval($value['status'])}.gif"></td>
				<td class="tc_right" align="center">{:$value[sn]}</td>
				<td align="center" class="tc_right">{:date("Y-m-d H:i:s",$value[postdate])}</td>
				<td align="center" class="tc_right">{:sys_format_price($value[price])}</td>
				<td align="center" class="tc_right"><a href="{:site_url('checkout,info')}sn={:$value[sn]}"><img src="images/pre.gif" alt="查看"></a></td>
			</tr>
			<!-- end -->
			</table>
		</div>
		<!-- if($pagelist) --><div align="right">{:$pagelist}</div><!-- end -->
	</div>
	<div class="space clear"></div>
</div>
<script type="text/javascript">
func_php("usercp",js_usercp,"user_cp");
function del(id)
{
	if(!id)
	{
		alert("操作非法");
		return false;
	}
	var q = confirm("确定要删除此信息吗？删除后是不能恢复的");
	if(q != 0)
	{
		var url = "{:site_url('post,del')}module_id={:$module_id}&id="+id;
		var msg = get_ajax(url);
		if(!msg) msg = "error: 操作非法";
		if(msg == "ok")
		{
			window.location.href = "{:$del_refresh_url}";
		}
		else
		{
			alert(msg);
			return false;
		}
	}
}
</script>
<!-- inc:foot -->